/*
 * Copyright 2022 NXP
 * SPDX-License-Identifier: MIT
 */

#include "lvgl/lvgl.h"
#include <stdio.h>
#include "gui_guider.h"
#include "events_init.h"
#include "custom.h"


void setup_scr_Gyro(lv_ui *ui){

	//Write codes Gyro
	ui->Gyro = lv_obj_create(NULL, NULL);

	//Write codes Gyro_btn_1
	ui->Gyro_btn_1 = lv_btn_create(ui->Gyro, NULL);

	//Write style LV_BTN_PART_MAIN for Gyro_btn_1
	static lv_style_t style_Gyro_btn_1_main;
	lv_style_reset(&style_Gyro_btn_1_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_btn_1_main
	lv_style_set_radius(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, 10);
	lv_style_set_bg_color(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, 255);
	lv_style_set_border_color(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, lv_color_make(0x01, 0xa2, 0xb1));
	lv_style_set_border_width(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, 2);
	lv_style_set_border_opa(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, 255);
	lv_style_set_outline_color(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, lv_color_make(0xd4, 0xd7, 0xd9));
	lv_style_set_outline_opa(&style_Gyro_btn_1_main, LV_STATE_DEFAULT, 255);
	lv_obj_add_style(ui->Gyro_btn_1, LV_BTN_PART_MAIN, &style_Gyro_btn_1_main);
	lv_obj_set_pos(ui->Gyro_btn_1, 30, 10);
	lv_obj_set_size(ui->Gyro_btn_1, 180, 100);
	ui->Gyro_btn_1_label = lv_label_create(ui->Gyro_btn_1, NULL);
	lv_label_set_text(ui->Gyro_btn_1_label, "");
	lv_obj_set_style_local_text_color(ui->Gyro_btn_1_label, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));

	//Write codes Gyro_temp
	ui->Gyro_temp = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_temp, "温度：");
	lv_label_set_long_mode(ui->Gyro_temp, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_temp, LV_LABEL_ALIGN_LEFT);

	//Write style LV_LABEL_PART_MAIN for Gyro_temp
	static lv_style_t style_Gyro_temp_main;
	lv_style_reset(&style_Gyro_temp_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_temp_main
	lv_style_set_radius(&style_Gyro_temp_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_temp_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_temp_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_temp_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_temp_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_temp_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_temp_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_temp_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_temp_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_temp_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_temp_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_temp_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_temp, LV_LABEL_PART_MAIN, &style_Gyro_temp_main);
	lv_obj_set_pos(ui->Gyro_temp, 60, 20);
	lv_obj_set_size(ui->Gyro_temp, 42, 0);

	//Write codes Gyro_temp_value
	ui->Gyro_temp_value = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_temp_value, "0.0");
	lv_label_set_long_mode(ui->Gyro_temp_value, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_temp_value, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for Gyro_temp_value
	static lv_style_t style_Gyro_temp_value_main;
	lv_style_reset(&style_Gyro_temp_value_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_temp_value_main
	lv_style_set_radius(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_temp_value_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_temp_value, LV_LABEL_PART_MAIN, &style_Gyro_temp_value_main);
	lv_obj_set_pos(ui->Gyro_temp_value, 120, 20);
	lv_obj_set_size(ui->Gyro_temp_value, 70, 0);

	//Write codes Gyro_pitch
	ui->Gyro_pitch = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_pitch, "PITCH：");
	lv_label_set_long_mode(ui->Gyro_pitch, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_pitch, LV_LABEL_ALIGN_LEFT);

	//Write style LV_LABEL_PART_MAIN for Gyro_pitch
	static lv_style_t style_Gyro_pitch_main;
	lv_style_reset(&style_Gyro_pitch_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_pitch_main
	lv_style_set_radius(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_pitch_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_pitch_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_pitch_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_pitch_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_pitch_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_pitch_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_pitch, LV_LABEL_PART_MAIN, &style_Gyro_pitch_main);
	lv_obj_set_pos(ui->Gyro_pitch, 60, 40);
	lv_obj_set_size(ui->Gyro_pitch, 55, 0);

	//Write codes Gyro_pitch_value
	ui->Gyro_pitch_value = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_pitch_value, "0.0");
	lv_label_set_long_mode(ui->Gyro_pitch_value, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_pitch_value, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for Gyro_pitch_value
	static lv_style_t style_Gyro_pitch_value_main;
	lv_style_reset(&style_Gyro_pitch_value_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_pitch_value_main
	lv_style_set_radius(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_pitch_value_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_pitch_value, LV_LABEL_PART_MAIN, &style_Gyro_pitch_value_main);
	lv_obj_set_pos(ui->Gyro_pitch_value, 120, 40);
	lv_obj_set_size(ui->Gyro_pitch_value, 70, 0);

	//Write codes Gyro_roll
	ui->Gyro_roll = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_roll, "ROLL：");
	lv_label_set_long_mode(ui->Gyro_roll, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_roll, LV_LABEL_ALIGN_LEFT);

	//Write style LV_LABEL_PART_MAIN for Gyro_roll
	static lv_style_t style_Gyro_roll_main;
	lv_style_reset(&style_Gyro_roll_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_roll_main
	lv_style_set_radius(&style_Gyro_roll_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_roll_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_roll_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_roll_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_roll_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_roll_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_roll_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_roll_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_roll_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_roll_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_roll_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_roll_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_roll, LV_LABEL_PART_MAIN, &style_Gyro_roll_main);
	lv_obj_set_pos(ui->Gyro_roll, 60, 60);
	lv_obj_set_size(ui->Gyro_roll, 47, 0);

	//Write codes Gyro_roll_value
	ui->Gyro_roll_value = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_roll_value, "0.0");
	lv_label_set_long_mode(ui->Gyro_roll_value, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_roll_value, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for Gyro_roll_value
	static lv_style_t style_Gyro_roll_value_main;
	lv_style_reset(&style_Gyro_roll_value_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_roll_value_main
	lv_style_set_radius(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_roll_value_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_roll_value, LV_LABEL_PART_MAIN, &style_Gyro_roll_value_main);
	lv_obj_set_pos(ui->Gyro_roll_value, 120, 60);
	lv_obj_set_size(ui->Gyro_roll_value, 70, 0);

	//Write codes Gyro_yaw
	ui->Gyro_yaw = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_yaw, "YAW：");
	lv_label_set_long_mode(ui->Gyro_yaw, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_yaw, LV_LABEL_ALIGN_LEFT);

	//Write style LV_LABEL_PART_MAIN for Gyro_yaw
	static lv_style_t style_Gyro_yaw_main;
	lv_style_reset(&style_Gyro_yaw_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_yaw_main
	lv_style_set_radius(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_yaw_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_yaw_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_yaw_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_yaw_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_yaw_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_yaw_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_yaw, LV_LABEL_PART_MAIN, &style_Gyro_yaw_main);
	lv_obj_set_pos(ui->Gyro_yaw, 60, 80);
	lv_obj_set_size(ui->Gyro_yaw, 44, 0);

	//Write codes Gyro_yaw_value
	ui->Gyro_yaw_value = lv_label_create(ui->Gyro, NULL);
	lv_label_set_text(ui->Gyro_yaw_value, "0.0");
	lv_label_set_long_mode(ui->Gyro_yaw_value, LV_LABEL_LONG_BREAK);
	lv_label_set_align(ui->Gyro_yaw_value, LV_LABEL_ALIGN_CENTER);

	//Write style LV_LABEL_PART_MAIN for Gyro_yaw_value
	static lv_style_t style_Gyro_yaw_value_main;
	lv_style_reset(&style_Gyro_yaw_value_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_yaw_value_main
	lv_style_set_radius(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_bg_color(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 255);
	lv_style_set_text_color(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_style_set_text_font(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, &lv_font_simsun_12);
	lv_style_set_text_letter_space(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 2);
	lv_style_set_pad_left(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_right(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_top(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 0);
	lv_style_set_pad_bottom(&style_Gyro_yaw_value_main, LV_STATE_DEFAULT, 0);
	lv_obj_add_style(ui->Gyro_yaw_value, LV_LABEL_PART_MAIN, &style_Gyro_yaw_value_main);
	lv_obj_set_pos(ui->Gyro_yaw_value, 120, 80);
	lv_obj_set_size(ui->Gyro_yaw_value, 70, 0);
	lv_anim_path_t lv_anim_path_Gyro_gyro2screen = {.cb = lv_anim_path_linear};

	//Write codes Gyro_gyro2screen
	ui->Gyro_gyro2screen = lv_btn_create(ui->Gyro, NULL);

	//Write style LV_BTN_PART_MAIN for Gyro_gyro2screen
	static lv_style_t style_Gyro_gyro2screen_main;
	lv_style_reset(&style_Gyro_gyro2screen_main);

	//Write style state: LV_STATE_DEFAULT for style_Gyro_gyro2screen_main
	lv_style_set_radius(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, 50);
	lv_style_set_bg_color(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_color(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, lv_color_make(0xff, 0xff, 0xff));
	lv_style_set_bg_grad_dir(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, LV_GRAD_DIR_VER);
	lv_style_set_bg_opa(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, 150);
	lv_style_set_border_color(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, lv_color_make(0x01, 0xa2, 0xb1));
	lv_style_set_border_width(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, 2);
	lv_style_set_border_opa(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, 100);
	lv_style_set_outline_color(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, lv_color_make(0xd4, 0xd7, 0xd9));
	lv_style_set_outline_opa(&style_Gyro_gyro2screen_main, LV_STATE_DEFAULT, 50);
	lv_obj_add_style(ui->Gyro_gyro2screen, LV_BTN_PART_MAIN, &style_Gyro_gyro2screen_main);
	lv_obj_set_pos(ui->Gyro_gyro2screen, 95, 320);
	lv_obj_set_size(ui->Gyro_gyro2screen, 50, 50);

	//Write animation: Gyro_gyro2screenmove in y direction
	lv_anim_t Gyro_gyro2screen_y;
	lv_anim_init(&Gyro_gyro2screen_y);
	lv_anim_set_var(&Gyro_gyro2screen_y, ui->Gyro_gyro2screen);
	lv_anim_set_time(&Gyro_gyro2screen_y, 300);
	lv_anim_set_exec_cb(&Gyro_gyro2screen_y, (lv_anim_exec_xcb_t)lv_obj_set_y);
	lv_anim_set_values(&Gyro_gyro2screen_y, lv_obj_get_y(ui->Gyro_gyro2screen), 260);
	_lv_memcpy_small(&Gyro_gyro2screen_y.path, &lv_anim_path_Gyro_gyro2screen, sizeof(lv_anim_path_cb_t));
	lv_anim_start(&Gyro_gyro2screen_y);

	ui->Gyro_gyro2screen_label = lv_label_create(ui->Gyro_gyro2screen, NULL);
	lv_label_set_text(ui->Gyro_gyro2screen_label, "<");
	lv_obj_set_style_local_text_color(ui->Gyro_gyro2screen_label, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_make(0x00, 0x00, 0x00));
	lv_obj_set_style_local_text_font(ui->Gyro_gyro2screen_label, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &lv_font_simsun_20);

	//Init events for screen
	events_init_Gyro(ui);
}